home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / arvis1 / loadup.frm < prev    next >
Text File  |  1999-08-12  |  5KB  |  137 lines

  1. VERSION 5.00
  2. Begin VB.Form LoadUp 
  3.    BorderStyle     =   1  'Fixed Single
  4.    ClientHeight    =   1440
  5.    ClientLeft      =   45
  6.    ClientTop       =   330
  7.    ClientWidth     =   4500
  8.    Icon            =   "LoadUp.frx":0000
  9.    LinkTopic       =   "Form1"
  10.    MaxButton       =   0   'False
  11.    MinButton       =   0   'False
  12.    ScaleHeight     =   1440
  13.    ScaleWidth      =   4500
  14.    StartUpPosition =   2  'CenterScreen
  15.    Begin VB.PictureBox Picture1 
  16.       Height          =   420
  17.       Left            =   225
  18.       ScaleHeight     =   360
  19.       ScaleWidth      =   4005
  20.       TabIndex        =   0
  21.       Top             =   765
  22.       Width           =   4065
  23.       Begin VB.Label Percent 
  24.          Alignment       =   2  'Center
  25.          BackStyle       =   0  'Transparent
  26.          BeginProperty Font 
  27.             Name            =   "Times New Roman"
  28.             Size            =   12
  29.             Charset         =   0
  30.             Weight          =   700
  31.             Underline       =   0   'False
  32.             Italic          =   0   'False
  33.             Strikethrough   =   0   'False
  34.          EndProperty
  35.          Height          =   375
  36.          Left            =   45
  37.          TabIndex        =   1
  38.          Top             =   0
  39.          Width           =   3930
  40.       End
  41.       Begin VB.Shape Bar 
  42.          BorderColor     =   &H000000FF&
  43.          FillColor       =   &H000000FF&
  44.          FillStyle       =   0  'Solid
  45.          Height          =   690
  46.          Left            =   0
  47.          Top             =   -90
  48.          Width           =   2355
  49.       End
  50.    End
  51.    Begin VB.Timer Timer1 
  52.       Interval        =   1
  53.       Left            =   1485
  54.       Top             =   1305
  55.    End
  56.    Begin VB.Image IconImg 
  57.       Height          =   420
  58.       Left            =   3645
  59.       Top             =   135
  60.       Width           =   420
  61.    End
  62.    Begin VB.Label Label1 
  63.       Alignment       =   2  'Center
  64.       Caption         =   "Quad-Ball By Arvinder Sehmi 1999."
  65.       BeginProperty Font 
  66.          Name            =   "Times New Roman"
  67.          Size            =   8.25
  68.          Charset         =   0
  69.          Weight          =   400
  70.          Underline       =   0   'False
  71.          Italic          =   0   'False
  72.          Strikethrough   =   0   'False
  73.       EndProperty
  74.       Height          =   195
  75.       Left            =   45
  76.       TabIndex        =   4
  77.       Top             =   1215
  78.       Width           =   4290
  79.    End
  80.    Begin VB.Label CurrLoad 
  81.       BeginProperty Font 
  82.          Name            =   "Times New Roman"
  83.          Size            =   9
  84.          Charset         =   0
  85.          Weight          =   400
  86.          Underline       =   0   'False
  87.          Italic          =   0   'False
  88.          Strikethrough   =   0   'False
  89.       EndProperty
  90.       Height          =   240
  91.       Left            =   315
  92.       TabIndex        =   3
  93.       Top             =   405
  94.       Width           =   3930
  95.    End
  96.    Begin VB.Label Label2 
  97.       Caption         =   "Loading Quad-Ball Story Mode...."
  98.       BeginProperty Font 
  99.          Name            =   "Times New Roman"
  100.          Size            =   11.25
  101.          Charset         =   0
  102.          Weight          =   700
  103.          Underline       =   0   'False
  104.          Italic          =   0   'False
  105.          Strikethrough   =   0   'False
  106.       EndProperty
  107.       Height          =   285
  108.       Left            =   180
  109.       TabIndex        =   2
  110.       Top             =   45
  111.       Width           =   4065
  112.    End
  113. End
  114. Attribute VB_Name = "LoadUp"
  115. Attribute VB_GlobalNameSpace = False
  116. Attribute VB_Creatable = False
  117. Attribute VB_PredeclaredId = True
  118. Attribute VB_Exposed = False
  119. '»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»'
  120. ' This Form Shows How Much of the Game Has loaded'
  121. '________________________________________________'
  122. Private Sub Form_Load()
  123. IconImg = Me.Icon
  124. End Sub
  125. Private Sub form_Paint()
  126.  ' works out what percent the bar is at
  127.  ' and works out the colour, or should i say color (for the americans) of the bar
  128.  On Error Resume Next
  129.  Bar.Width = Int((Picture1.Width / 17) * Val(Me.caption))
  130.  Percent.caption = Int(100 / 17 * Val(Me.caption)) & "%"
  131.  colpercent = Int((255 / 17) * Val(Me.caption))
  132.  Bar.FillColor = RGB(0, 255 - colpercent, colpercent)
  133.  Percent.ForeColor = RGB(0, colpercent, 255 - colpercent)
  134.  Bar.BorderColor = Bar.FillColor
  135.  Me.caption = Percent.caption
  136. End Sub
  137.